package com.carrot.gateway.enums;

import com.carrot.common.enums.BaseMsg;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum GatewayExceptionEnum implements BaseMsg {

     SSO_SERVICE_EXCEPTION(-1,"服务器开小差，请稍后重试","服务器开小差，请稍后重试"),

     AUTH_FAIL(40102,"",""),

     REFRESH_TOKEN_EXPIRE(100524,"刷新token过期","长时间未操作，系统退出，请重新登录！"),

     ACCOUNT_EXCEPTION(100524,"账号异常","账号在其他地方登录或被禁用，如非本人操作，请联系管理员"),

    IP_PROHIBITION(102001, "IP禁止访问", "IP禁止访问"),

    SIGN_INVALID(102002, "签名校验失败", "签名校验失败"),

    API_NO_ACCESS_PERMISSION(202003, "无该API访问权限", "无该API访问权限"),

    LOGIN_ACCOUNT_ERROR(-1,"账号不可为空","账号不可为空"),

    LOGIN_PASSWORD_ERROR(-1,"密码不可为空","密码不可为空"),

    LOGIN_SMS_ERROR(-1,"验证码不可为空","验证码不可为空"),

    LOGIN_TYPE_ERROR(-1,"登录方式有误，请重新选择","登录方式有误，请重新选择")
    ;

    private final int code;

    private final String description;

    private final String message;

}
